package com.vrv.vap.dong.service.impl;

import com.vrv.vap.dong.dao.SysUserDao;
import com.vrv.vap.dong.entity.SysUser;
import com.vrv.vap.dong.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.UUID;

/**
 * @author wh1107066
 * @date 2022/11/17
 */
@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    private SysUserDao sysUserDao;

    @Override
    public void save(SysUser sysUser) {
        sysUser.setId(UUID.randomUUID().toString());
        sysUserDao.save(sysUser);
    }

    @Override
    public List<SysUser> findListAll() {
        return sysUserDao.findListAll();
    }
}